package cn.snowsoft.iot.module.warning.dal.mysql.warning.action;

import cn.snowsoft.iot.module.warning.controller.admin.home.vo.ActionTypeCountVO;
import cn.snowsoft.iot.module.warning.controller.admin.warning.action.vo.WarningActionPageVO;
import cn.snowsoft.iot.module.warning.dal.dataobject.warning.action.WarningActionDO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface WarningActionMapper extends BaseMapper<WarningActionDO> {
    IPage<WarningActionDO> selectActionPage(IPage<WarningActionDO> page, @Param("entity") WarningActionPageVO actionPage);

    List<ActionTypeCountVO> getActionTypeCount();
}
